/**
 * @Created by WebStorm
 * @author: TRT
 * @desc
 *
 */
// v3 Promise jie jue hui diao di yu
export default function wxToPromise(method, options = {}) {
    return new Promise((resolve, reject) => {
        options.success = resolve
        options.fail = err => {
            reject(err)
        }
        wx[method](options)
    })
}
